From: Florian Müllner Date: Tue, 15 Oct 2024 14:08:45 +0000 (+0200) Subject: windowMenu: Add context to screenshot action X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~173^2^2~219 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=8694f891ad09444aa85405e8404dd7aa8b62fe59;p=gnome-shell.git windowMenu: Add context to screenshot action The string "Take Screenshot" is used both by the action in the window menu and the screenshot/recording toggle in the UI. However in some languages, it would be best to use different strings for the two use cases. Address this by adding context to the window menu string, so it can be differentiated from the string in the screenshot UI. Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7979 Part-of: --- diff --git a/js/ui/windowMenu.js b/js/ui/windowMenu.js index af8656282..71e8da355 100644 --- a/js/ui/windowMenu.js +++ b/js/ui/windowMenu.js @@ -25,7 +25,7 @@ export class WindowMenu extends PopupMenu.PopupMenu { let item; // Translators: entry in the window right click menu. - item = this.addAction(_('Take Screenshot'), async () => { + item = this.addAction(C_('window-menu', 'Take Screenshot'), async () => { try { const actor = window.get_compositor_private(); const content = actor.paint_to_content(null);